package com.fjb.pojo.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 用户文件
 * </p>
 *
 * @author hemiao
 * @since 2020-02-11
 */
public class SysUserFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer mainUserId;

    private Integer userId;

    /**
     * 文件编号 主账号id + 年月日时分 + 4位随机数
     */
    private String fileNumber;

    /**
     * 类型 image/jpeg 、image/png
     */
    private String contentType;
    
    /**
     * 文件服务器地址
     */
    private String fileServiceUrl;
    
    private String fileUrl;
    
    private Double fileSize;

    /**
     * 1 图片 ，  2视频
     */
    private Integer fileType;

    /**
     * 文件状态   1、正常   2、删除
     */
    private Integer fileStatus;

    /**
     * 排序  越小约靠前
     */
    private Integer sort;

    /**
     *  置顶    1、置顶    2、未置顶（默认）
     */
    private Integer stick;

    private Integer createUserId;

    private LocalDateTime createTime;

    private Integer updateUserId;

    private LocalDateTime updateTime;

    private String description;

    /**
     * 文件来源  1 用户头像  , 2 产品文件 ，3 产品属性 attr_sku ，4 、富文本 ueditor
     */
    private Integer fileSource;
    
    /**
     * 来源   电脑端 windos ，微信小程序 wx_applet，app
     */
    private String dataSource;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getFileNumber() {
        return fileNumber;
    }

    public void setFileNumber(String fileNumber) {
        this.fileNumber = fileNumber;
    }
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
    public Double getFileSize() {
        return fileSize;
    }

    public void setFileSize(Double fileSize) {
        this.fileSize = fileSize;
    }
    public Integer getFileType() {
        return fileType;
    }

    public void setFileType(Integer fileType) {
        this.fileType = fileType;
    }
    public Integer getFileStatus() {
        return fileStatus;
    }

    public void setFileStatus(Integer fileStatus) {
        this.fileStatus = fileStatus;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Integer getStick() {
        return stick;
    }

    public void setStick(Integer stick) {
        this.stick = stick;
    }
    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
    public Integer getFileSource() {
        return fileSource;
    }

    public void setFileSource(Integer fileSource) {
        this.fileSource = fileSource;
    }

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public String getFileServiceUrl() {
		return fileServiceUrl;
	}

	public void setFileServiceUrl(String fileServiceUrl) {
		this.fileServiceUrl = fileServiceUrl;
	}

	@Override
	public String toString() {
		return "SysUserFile [id=" + id + ", mainUserId=" + mainUserId + ", userId=" + userId + ", fileNumber="
				+ fileNumber + ", contentType=" + contentType + ", fileServiceUrl=" + fileServiceUrl + ", fileUrl="
				+ fileUrl + ", fileSize=" + fileSize + ", fileType=" + fileType + ", fileStatus=" + fileStatus
				+ ", sort=" + sort + ", stick=" + stick + ", createUserId=" + createUserId + ", createTime="
				+ createTime + ", updateUserId=" + updateUserId + ", updateTime=" + updateTime + ", description="
				+ description + ", fileSource=" + fileSource + ", dataSource=" + dataSource + "]";
	}
}
